package com.yu.crm.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.yu.crm.domain.pojo.ProSoftFile;
import com.yu.crm.mapper.ProSoftFileMapper;
import com.yu.crm.service.IProSoftFileService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 软件更新文件表 服务实现类
 * </p>
 *
 * @author liuwenju
 * @since 2021-04-07
 */
@Service
public class ProSoftFileService extends ServiceImpl<ProSoftFileMapper, ProSoftFile> implements IProSoftFileService {

    @Override
    public void deleteBySoftwareId(Long id) {
        UpdateWrapper<ProSoftFile> wrapper = new UpdateWrapper<>();
        wrapper.eq("soft_id", id);
        this.remove(wrapper);
    }
}
